<template>
  <view class="goodsDetail">
    <view class="logo">
      <image :src="goods.goods_small_logo" v-show="goods.goods_small_logo !== ''"></image>
      <image src="../../../../static/logo.png" v-show="goods.goods_small_logo === ''"></image>
    </view>
    <view class="titleAndPrice">
      <view class="title">
        <text class="goods_name">{{goods.goods_name}}</text>
      </view>
      <view class="price">
        <text>￥{{goods.goods_price}}</text>
      </view>
    </view>
  </view>
</template>
<script>
  export default {
    data() {
      return{

      };
    },
    props:{
      goods:{
        type:Object,
        default:{}
      }
    },
    onLoad() {
      console.log(this.goods)
    }
  }
</script>
<style>
  .title{
    margin-bottom: 10px;
  }
  image{
    margin: 0 10px;
    width: 100px;
    height: 100px;
  }
  .goodsList{
    display: flex;
    flex-direction: column;
  }
  .goodsDetail{
    display: flex;
    margin: 5px 0;
  
  }
  .titleAndPrice{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  
  
  }
  .price{
    font-size: 16px;
    color:red
  }
  .goods_name{
    white-space: wrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
</style>